#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

int mountmenu(char *title, char *options, int row, int col);
char *replicate(char c, int x);
void pause();

int mountmenu(char *title, char *options, int row, int col){
    int i, r;
    printf("\n\n\t%s\n\n", title);
    for ( i = 0; i < col * row; i = i + col )        
        printf( "\t%s\n", options + i );
      
    scanf("%d", &r);
    return r;
}

void pause(){
     char pausa;
     getchar();
     scanf("%c", &pausa);
}

char *replicate(char c, int x){
      int i;
      char *r;
      for (i = 0; i < x; i++){
          *(r + 1) = c;
      }
      return r;
}
